//
//  CivilDetailView.m
//  SUZHOUBANK
//
//  Created by saberLily on 16/4/20.
//  Copyright © 2016年 RuiFeng-WGCC. All rights reserved.
//

#import "CivilDetailView.h"
@interface CivilDetailView()
@property (nonatomic,strong) UIImageView *bacImg; /**< <#desc#> */
@end
@implementation CivilDetailView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.layer.cornerRadius = 10.0f;
        [self addSubview:self.detaiLabel];
        [self addSubview:self.bacImg];
        
    }
    return self;
}

#pragma mark *** getters ***
-(UILabel *)detaiLabel{
    if (!_detaiLabel) {
        _detaiLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 50, 800, 60)];
        _detaiLabel.textAlignment = 0;
        _detaiLabel.font = [UIFont systemFontOfSize:40];
        _detaiLabel.textColor = [UIColor colorWithRed:109.0/255 green:150.0/255 blue:49.0/255 alpha:1.0];
        _detaiLabel.text = @"苏州市民卡";
    }
    return _detaiLabel;
}
-(UIImageView *)bacImg{
    if (!_bacImg) {
        _bacImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(self.bounds)-15, self.bounds.size.width, 10)];
        _bacImg.image = [UIImage imageNamed:@"对公产品_06"];
    }
    return _bacImg;
}
@end
